﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHG.ORM
{
    [Serializable()]
    public class VluesInitTb_Car : BaseEntityObject
    {
        public VluesInitTb_Car()
        {
            this.TableName = "Tb_Car";
            /// <summary>
            /// 唯一主键
            /// </summary>
            this.Dictionary.Add("CID", null);
            /// <summary>
            /// 车牌号
            /// </summary>
            this.Dictionary.Add("CarBanrdCode", null);
            /// <summary>
            /// 
            /// </summary>
            this.Dictionary.Add("CarCode", null);
            /// <summary>
            /// 
            /// </summary>
            this.Dictionary.Add("DriverName", null);
            /// <summary>
            /// 联系电话
            /// </summary>
            this.Dictionary.Add("Mobile", null);
            /// <summary>
            /// 车型
            /// </summary>
            this.Dictionary.Add("CarType", null);
            /// <summary>
            /// 购车日期
            /// </summary>
            this.Dictionary.Add("BuyDateTime", null);
            /// <summary>
            /// 所属中心编号。外键
            /// </summary>
            this.Dictionary.Add("AttachCenter", null);
            /// <summary>
            /// 所属区部编号。外键
            /// </summary>
            this.Dictionary.Add("AttachSection", null);
            /// <summary>
            /// 所属站点编号。外键
            /// </summary>
            this.Dictionary.Add("AttachStop", null);
            AddPrimaryToDictionary();
        }

        /// <summary>
        /// 实体类 重写实体基类添加主键信息方法，主键数据类型首字母要大写
        /// </summary>
        protected override void AddPrimaryToDictionary()
        {
            _primarydictionary.Add("CID", "string");
        }
    }
    public class Tb_Car : VluesInitTb_Car
    {
        /// <summary>
        /// 唯一主键
        /// </summary>
        public string CID
        {
            get { return this["CID"] as string; }
            set { this["CID"] = value; }
        }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string CarBanrdCode
        {
            get { return this["CarBanrdCode"] as string; }
            set { this["CarBanrdCode"] = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string CarCode
        {
            get { return this["CarCode"] as string; }
            set { this["CarCode"] = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string DriverName
        {
            get { return this["DriverName"] as string; }
            set { this["DriverName"] = value; }
        }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string Mobile
        {
            get { return this["Mobile"] as string; }
            set { this["Mobile"] = value; }
        }
        /// <summary>
        /// 车型
        /// </summary>
        public string CarType
        {
            get { return this["CarType"] as string; }
            set { this["CarType"] = value; }
        }
        /// <summary>
        /// 购车日期
        /// </summary>
        public DateTime? BuyDateTime
        {
            get { return this["BuyDateTime"] as DateTime?; }
            set { this["BuyDateTime"] = value; }
        }
        /// <summary>
        /// 所属中心编号。外键
        /// </summary>
        public string AttachCenter
        {
            get { return this["AttachCenter"] as string; }
            set { this["AttachCenter"] = value; }
        }
        /// <summary>
        /// 所属区部编号。外键
        /// </summary>
        public string AttachSection
        {
            get { return this["AttachSection"] as string; }
            set { this["AttachSection"] = value; }
        }
        /// <summary>
        /// 所属站点编号。外键
        /// </summary>
        public string AttachStop
        {
            get { return this["AttachStop"] as string; }
            set { this["AttachStop"] = value; }
        }
    }
}
